/*
 * SymetricCrypto.h
 *
 *  Created on: Sep 15, 2011
 *      Author: Gherman Alin
 */

#ifndef CRYPTO__SYMETRICCRYPTO_H_
#define CRYPTO__SYMETRICCRYPTO_H_

#include <string>

namespace Crypto {

class SymetricCrypto {
public:
	SymetricCrypto();
	SymetricCrypto(const std::string& pass);
	virtual ~SymetricCrypto();

	void setPassword(const std::string& pass);

	void encrypt(std::string& in, std::string& out);
	void decrypt(std::string& in, std::string& out);

private:
	unsigned char key[32];
	unsigned char iv[32];
};

}

#endif
